package drds.common.db.xml_mapping.parsing;

import java.util.Properties;


public class PropertyParser {


  public static String parse(String string, Properties variables) {
    VariableTokenHandler variableTokenHandler = new VariableTokenHandler(variables);
    GenericTokenParser genericTokenParser = new GenericTokenParser("${", "}", variableTokenHandler);
    return genericTokenParser.parse(string);
  }

}
